import request from '@/utils/request'

export function getList(page, size, name, orderId, status, startTime, endTime) {
  return request({
    url: '/order/list',
    method: 'get',
    params: {page, size, name, orderId, status, startTime, endTime}
  })
}

export function qrById(id) {
  return request({
    url: '/order/findById',
    method: 'get',
    params: {id}
  })
}

export function findById(id) {
  return request({
    url: '/order/findByOrderId',
    method: 'get',
    params: {id}
  })
}

export function orderRefund(data) {
  return request({
    url: '/order/refund',
    method: 'post',
    data
  })
}
export function ordList(params) {
  return request({
    url: '/salesOrder/list',
    method: 'get',
    params
  })
}
